package com.dmap.knowledge.service;

import com.dmap.knowledge.po.Banner;
import com.dmap.knowledge.vo.AppBannerVo;
import com.dmap.knowledge.vo.BannerInfoOneVo;
import com.dmap.knowledge.vo.BannerInfoVo;

import java.util.List;

/**
 * @Author zmh
 * @date 18-7-18 下午7:08
 */
public interface BannerExtensionService {
    
    /**
     * 通过jumpid查看list
     * @param bannerId
     * @return
     */
    List<Banner> getBannerByJumpId(long bannerId);
   /**
     * 统计数量
     * @return
     */
    public int countBanner();
    
    /**
     * 通过条件筛选banner
     * @param appNumber
     * @param lang
     * @param companyNumber
     * @param key
     * @param pageIndex
     * @param pageSize
     * @return
     */
    public BannerInfoVo selectBannerList(String appNumber, String lang, String companyNumber, String key, int pageIndex, int pageSize);
    /**
     * 查找appbanner
     * @param lang
     * @param projectId
     * @return
     */
    public List<AppBannerVo> selectAppBanner(String lang, String projectId);
    
    /**
     * 查看banner数量
     * @param appNumber
     * @param lang
     * @param companyNumber
     * @param key
     * @return
     */
    public int countSelectBanner(String appNumber, String lang, String companyNumber, String key);
    
    
    /**
     * 查询bannerhistory
     * @param userId
     * @param type
     * @param jumpId
     * @param bannerId
     * @return
     */
    
    public BannerInfoOneVo selectBannerInfo(String bannerId);
}
